<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: search.php 140 2013-09-22 07:44:23Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 140 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-09-22 07:44:23 +0000 (Sun, 22 Sep 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

$box_smarty = new smarty;
$box_smarty->assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/');

$box_smarty->assign('FORM_ACTION', draw_form('quick_find', href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'box', $request_type, false), 'GET').draw_hidden_field('box', 'true')."\n");
$box_smarty->assign('INPUT_SEARCH', draw_input_field('keywords', (isset($_GET['keywords'])?$_GET['keywords']:BOX_SEARCH_VALUE)));
$box_smarty->assign('BUTTON_SUBMIT', image_submit('button_quick_find.gif', IMAGE_BUTTON_SEARCH));
$box_smarty->assign('FORM_END', '</form>');

$box_smarty->assign('LINK_ADVANCED', '<a class="fs85" href="'.href_link(FILENAME_ADVANCED_SEARCH).'" title="'.ADVANCED_SEARCH_LINK.'">'.ADVANCED_SEARCH_LINK.'</a>');

$box_smarty->assign('language', $_SESSION['language']);
$box_smarty->assign('html_tpl_path', CURRENT_TEMPLATE.'/html');

if (!CacheCheck()) {
	$box_smarty->caching = false;
	$box_content = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_search.html');
} else {
	$box_smarty->caching = true;
	$box_smarty->cache_lifetime = CACHE_LIFETIME;
	$box_smarty->cache_modified_check = CACHE_CHECK;
	$cache_id = $_SESSION['language'];
	$box_content = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_search.html', $cache_id);
}
?>